<template>
    <div class="registerbox">
        <el-card class="gray-card no-border no-margin-top" shadow="never">
        <el-form ref="form" :model="form" class="form" >
            <el-form-item label="质控品编码：">
                <el-select v-model="form.pro" placeholder="请选择" >
                    <el-option
                        v-for="item in dateOptions"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value">
                    </el-option>
                </el-select>
            </el-form-item>
            <el-form-item label="质控品名称：">
                <span>12345</span>
            </el-form-item>
            <el-form-item label="质控品批号：">
                <el-select v-model="form.pro" placeholder="请选择" >
                    <el-option
                        v-for="item in dateOptions"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value">
                    </el-option>
                </el-select>
            </el-form-item>
            <el-form-item label="浓度水平：">
                <el-select v-model="form.pro" placeholder="请选择" >
                    <el-option
                        v-for="item in dateOptions"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value">
                    </el-option>
                </el-select>
            </el-form-item>
            <el-form-item label="平均浓度：">
                <el-input v-model="form.dno"></el-input>
            </el-form-item>
            <el-form-item label="单位：">
                <el-input v-model="form.dno"></el-input>
            </el-form-item>
            <el-form-item label="SD值：">
                <el-input v-model="form.dno"></el-input>
            </el-form-item>

        </el-form>
        </el-card>
        <div class="details-foot">
            <div class="cell-btn">
                <el-button type="primary">立即创建</el-button>
                <el-button>取消</el-button>
            </div>
        </div><!------details-foot 底部预警------>
    </div>
</template>

<script>


export default {
  name: "addRules",
  data() {
    return {
      deviceList: [],
      loading: false,
      redirect: undefined,
      registerShow:false,
      dateOptions:[],
      form: {
          dNo: '',
          dname: '',
          dpno: '',
          pro: '',
          sample: '',
          dep: [],
          mainMan: '',
          manager: '',
          date: '',
          factory: '',
          desc: '',
          func: '',
          dimg: '',
          dapp: '',
        }
    };
  },
  watch: {
    
  },
  created() {
      this.getDeviceList()
  },
  methods: {
      onSubmit(){

      },
    toBack(){
        this.$emit('func',false)
    },
    getDeviceList(){
        let deviceExp ={
            name:'全自动量子点荧光免疫分析仪QD-S1200',
            deviceNo:'NJYKD-JY-XT-000006',
            dep:'心脑血管科',
            connet:true,
            warning:false,
            lock:false,
            wait2Check:true
        }
        for(let i=0;i<25;i++){
            this.deviceList.push(deviceExp)
        }
    },
    toDeviceInfo(id){
        this.$router.push({path:"/device/deviceInfo/index"});
    }
  }
};
</script>